<template>
  <div>
      <h1>v-on练习</h1>
      <p>你的金钱:{{num}}</p>
      <button @click='num -= 520'>520</button>
      <button @click='num +=100'>100</button>
      <button @click='num +=5000'>5000</button>
  </div>
</template>

<script>
export default {
data () {
    return {
        num:1000
    }
}
}
</script>

<style>

</style>